const express = require('express');
const app = express();

module.exports = function (PORT, callback) {
    const port = PORT || process.env.PORT || 80;
    app.listen(port, () => {
        if(callback){
            return callback(app,(route)=>express.static(route));
        }
        console.log('Hello world listening on port', port);
    });
}